<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>编辑功能</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/theme.css">
<link rel="stylesheet"
	href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
	type="text/javascript"></script>
</head>

<body class="content1">
	<div class="header">
		<h1 class="page-title">编辑功能</h1>
	</div>

	<ul class="breadcrumb">
		<li><a href="index.html">功能管理</a> <span class="divider">/</span>
		</li>
		<li class="active">编辑功能</li>
	</ul>

	<div class="container-fluid">
		<div class="row-fluid">

			<form method="post" action="<%=basePath%>product/edit"
				enctype="multipart/form-data">
				<div class="well">
					<div class="tab-pane active in">
						<label>id:${theproduct.id } <input type="hidden"  name="id" value="${theproduct.id }"></label>
						<label>图片存储位置：${theproduct.saveurl}</label>
						<label>商品名称</label> 
						<input type="text" name="name" value="${theproduct.name}">
						 <label>商品价格</label>
						<input type="text" name="price" value="${theproduct.price }">
						 <label>数量</label> 
						 <input
							type="text" name="number" value="${theproduct.number }">
							 <label>类型</label>
							  <select
							name="kindsid">
							<c:forEach items="${kinds }" var="kind">
								<option value="${kind.id}" <c:if test="${kind.id eq theproduct.kindsid }">selected</c:if>>${kind.name}</option>
							</c:forEach>
						</select>
						 <label>简介</label> <input type="text" name="shortmessage" value="${theproduct.shortmessage }">
						 
						<label>详细描述</label> <input type="text" name="discribe" value="${theproduct.discribe }">
						 <label>图片</label> <input type="file" name="upfile"> <label></label> 
						 <input
							type="submit" value="提交">

					</div>
				</div>

			</form>








		</div>
	</div>
</body>
</html>
